package edu.neusoft.kongfanfei317.yuejian1.model;

import edu.neusoft.kongfanfei317.yuejian1.bean.RegisterBean;
import edu.neusoft.kongfanfei317.yuejian1.iface.RegisterIface;
import edu.neusoft.kongfanfei317.yuejian1.listener.TListener;
import edu.neusoft.kongfanfei317.yuejian1.service.Service;
import retrofit2.Call;
import retrofit2.Retrofit;



public class RegisterModel extends RetrofitBaseModel implements RegisterIface<RegisterBean>{
    private Retrofit retrofit;
    Service service;
    public RegisterModel(){
        retrofit = getRetrofit();
    }
    @Override
    public void getRegister(String username, String userpass, String mobilenum, String address, String commernnt, TListener<RegisterBean> TListener) {
        service=getService();
        Call<RegisterBean> call = service.getregister(username, userpass,mobilenum ,address,commernnt);

        callenqueue(call,TListener);
    }

    @Override
    public void getUpdate(String id, String name, String pass, String phone, String address, TListener<RegisterBean> TListener) {

    }
}
